package system;

import java.util.HashMap;
import java.util.Map;

public class UserPermissionManager {
    private Map<String, String> userPermissions = new HashMap<>();

    public void addUserPermission(String username, String permission) {
        userPermissions.put(username, permission);
    }

    public boolean hasPermission(String username, String permission) {
        return userPermissions.getOrDefault(username, "").equals(permission);
    }
}
